package com.itheima.pojo;

import javax.persistence.*;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_feedback" )
public class Feedback  implements Serializable {

	private static final long serialVersionUID =  4977698381251451342L;

	/**
	 * 唯一uid
	 */
	@Id
   	@Column(name = "uid" )
	private String uid;

	/**
	 * 用户uid
	 */
   	@Column(name = "user_uid" )
	private String userUid;

	/**
	 * 反馈的内容
	 */
   	@Column(name = "content" )
	private String content;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 标题
	 */
   	@Column(name = "title" )
	private String title;

	/**
	 * 反馈状态： 0：已开启  1：进行中  2：已完成  3：已拒绝
	 */
   	@Column(name = "feedback_status" )
	private Integer feedbackStatus;

	/**
	 * 回复
	 */
   	@Column(name = "reply" )
	private String reply;

	/**
	 * 管理员uid
	 */
   	@Column(name = "admin_uid" )
	private String adminUid;

   	@Transient
   	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
